package bamboo.design_pattern.chap20_iter.book;

/**
 * @Author: fulw
 * @Date: 2021/12/21 11:11
 */
public class MainTest {
    public static void main(String[] args) {
        IProject project = new Project();
        project.add("1", "2", "3");
        project.add("12", "22", "32");
        project.add("13", "23", "33");
        //这边100个项目
        for (int i = 4; i < 104; i++) {
            project.add("第" + i + "个项目", Integer.toString(i * 5), Integer.toString(i * 1000000));
        }
        IProjectIterator projectIterator = project.iterator();
        while (projectIterator.hasNext()) {
            IProject p = (IProject) projectIterator.next();
            System.out.println(p.showProjectInfo());
        }
    }
}
